package com.bw.dg.service.impl;


import com.bw.dg.dao.DeptDao;
import com.bw.dg.dao.LogDao;
import com.bw.dg.pojo.Dept;


import com.bw.dg.pojo.Log;
import com.bw.dg.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;


import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;
import java.util.UUID;

@Service
@Transactional
public class DeptServiceimpl implements DeptService {
    @Autowired
    private DeptDao tb_deptDao;
    @Autowired
    private LogDao logDao;

    @Override
    public List deptlist() {
        return this.tb_deptDao.deptlist();
    }

    @Override
    public Dept adds(Dept dept) {

        return this.tb_deptDao.adds(dept);
    }

    @Override
    public String[] del(String id) {
        return this.tb_deptDao.del(id);
    }


}
